﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.gxjdWebSite
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    public class Map_Information : ClassMapping<DB_Model.gxjdWebSite.Information>
    {
        public Map_Information()
        {
            Id(x => x.nr_id, map =>
            {
                map.Length(40);
            });

            Property(x => x.nr_type_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.proj_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.nr_title, map =>
            {
                map.Length(200);
            });

            Property(x => x.nr_content, map =>
            {
                map.Length(1000);
            });

            Property(x => x.nr_date, map =>
            {
                map.Length(200);
            });

            Property(x => x.nr_is_show, map =>
            {

            });

            Property(x => x.nr_is_new, map =>
            {

            });

            Property(x => x.nr_is_hot, map =>
            {

            });

            Property(x => x.is_valid, map =>
            {

            });

            Property(x => x.create_date, map =>
            {

            });

            Property(x => x.create_user_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.sp_node_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.has_fj, map =>
            {

            });

            Table("nr_content");
        }
    }
}
